

<!DOCTYPE html>
<html class="writer-html5" lang="en" >
<head>
  <meta charset="utf-8" />
  
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  
  <title>mindspore &mdash; MindSpore master documentation</title>
  

  
  <link rel="stylesheet" href="../_static/css/theme.css" type="text/css" />
  <link rel="stylesheet" href="../_static/pygments.css" type="text/css" />

  
  

  
  

  

  
  <!--[if lt IE 9]>
    <script src="../_static/js/html5shiv.min.js"></script>
  <![endif]-->
  
    
      <script type="text/javascript" id="documentation_options" data-url_root="../" src="../_static/documentation_options.js"></script>
        <script src="../_static/jquery.js"></script>
        <script src="../_static/underscore.js"></script>
        <script src="../_static/doctools.js"></script>
        <script src="../_static/language_data.js"></script>
        <script async="async" src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/latest.js?config=TeX-AMS-MML_HTMLorMML"></script>
    
    <script type="text/javascript" src="../_static/js/theme.js"></script>

    
    <link rel="index" title="Index" href="../genindex.html" />
    <link rel="search" title="Search" href="../search.html" />
    <link rel="next" title="mindspore.Tensor" href="mindspore/mindspore.Tensor.html" />
    <link rel="prev" title="MindSpore API" href="../index.html" /> 
</head>

<body class="wy-body-for-nav">

   
  <div class="wy-grid-for-nav">
    
    <nav data-toggle="wy-nav-shift" class="wy-nav-side">
      <div class="wy-side-scroll">
        <div class="wy-side-nav-search" >
          

          
            <a href="../index.html" class="icon icon-home"> MindSpore
          

          
          </a>

          
            
            
          

          
<div role="search">
  <form id="rtd-search-form" class="wy-form" action="../search.html" method="get">
    <input type="text" name="q" placeholder="Search docs" />
    <input type="hidden" name="check_keywords" value="yes" />
    <input type="hidden" name="area" value="default" />
  </form>
</div>

          
        </div>

        
        <div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="main navigation">
          
            
            
              
            
            
              <p class="caption"><span class="caption-text">MindSpore Python API</span></p>
<ul class="current">
<li class="toctree-l1 current"><a class="current reference internal" href="#">mindspore</a><ul>
<li class="toctree-l2"><a class="reference internal" href="#id1">张量</a><ul>
<li class="toctree-l3"><a class="reference internal" href="mindspore/mindspore.Tensor.html">mindspore.Tensor</a></li>
<li class="toctree-l3"><a class="reference internal" href="mindspore/mindspore.RowTensor.html">mindspore.RowTensor</a></li>
<li class="toctree-l3"><a class="reference internal" href="mindspore/mindspore.SparseTensor.html">mindspore.SparseTensor</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="#id2">参数</a><ul>
<li class="toctree-l3"><a class="reference internal" href="mindspore/mindspore.Parameter.html">mindspore.Parameter</a></li>
<li class="toctree-l3"><a class="reference internal" href="mindspore/mindspore.ParameterTuple.html">mindspore.ParameterTuple</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="#id3">数据类型</a><ul>
<li class="toctree-l3"><a class="reference internal" href="mindspore/mindspore.dtype.html">mindspore.dtype</a></li>
<li class="toctree-l3"><a class="reference internal" href="mindspore/mindspore.dtype_to_nptype.html">mindspore.dtype_to_nptype</a></li>
<li class="toctree-l3"><a class="reference internal" href="mindspore/mindspore.issubclass_.html">mindspore.issubclass_</a></li>
<li class="toctree-l3"><a class="reference internal" href="mindspore/mindspore.dtype_to_pytype.html">mindspore.dtype_to_pytype</a></li>
<li class="toctree-l3"><a class="reference internal" href="mindspore/mindspore.pytype_to_dtype.html">mindspore.pytype_to_dtype</a></li>
<li class="toctree-l3"><a class="reference internal" href="mindspore/mindspore.get_py_obj_dtype.html">mindspore.get_py_obj_dtype</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="#id4">随机种子</a><ul>
<li class="toctree-l3"><a class="reference internal" href="mindspore/mindspore.set_seed.html">mindspore.set_seed</a></li>
<li class="toctree-l3"><a class="reference internal" href="mindspore/mindspore.get_seed.html">mindspore.get_seed</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="#id5">模型</a><ul>
<li class="toctree-l3"><a class="reference internal" href="mindspore/mindspore.Model.html">mindspore.Model</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="#id6">数据处理工具</a><ul>
<li class="toctree-l3"><a class="reference internal" href="mindspore/mindspore.DatasetHelper.html">mindspore.DatasetHelper</a></li>
<li class="toctree-l3"><a class="reference internal" href="mindspore/mindspore.connect_network_with_dataset.html">mindspore.connect_network_with_dataset</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="#id7">混合精度管理</a><ul>
<li class="toctree-l3"><a class="reference internal" href="mindspore/mindspore.LossScaleManager.html">mindspore.LossScaleManager</a></li>
<li class="toctree-l3"><a class="reference internal" href="mindspore/mindspore.FixedLossScaleManager.html">mindspore.FixedLossScaleManager</a></li>
<li class="toctree-l3"><a class="reference internal" href="mindspore/mindspore.DynamicLossScaleManager.html">mindspore.DynamicLossScaleManager</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="#id8">序列化</a><ul>
<li class="toctree-l3"><a class="reference internal" href="mindspore/mindspore.save_checkpoint.html">mindspore.save_checkpoint</a></li>
<li class="toctree-l3"><a class="reference internal" href="mindspore/mindspore.load_checkpoint.html">mindspore.load_checkpoint</a></li>
<li class="toctree-l3"><a class="reference internal" href="mindspore/mindspore.load_param_into_net.html">mindspore.load_param_into_net</a></li>
<li class="toctree-l3"><a class="reference internal" href="mindspore/mindspore.export.html">mindspore.export</a></li>
<li class="toctree-l3"><a class="reference internal" href="mindspore/mindspore.load.html">mindspore.load</a></li>
<li class="toctree-l3"><a class="reference internal" href="mindspore/mindspore.parse_print.html">mindspore.parse_print</a></li>
<li class="toctree-l3"><a class="reference internal" href="mindspore/mindspore.build_searched_strategy.html">mindspore.build_searched_strategy</a></li>
<li class="toctree-l3"><a class="reference internal" href="mindspore/mindspore.merge_sliced_parameter.html">mindspore.merge_sliced_parameter</a></li>
<li class="toctree-l3"><a class="reference internal" href="mindspore/mindspore.load_distributed_checkpoint.html">mindspore.load_distributed_checkpoint</a></li>
<li class="toctree-l3"><a class="reference internal" href="mindspore/mindspore.async_ckpt_thread_status.html">mindspore.async_ckpt_thread_status</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="#id9">即时编译</a><ul>
<li class="toctree-l3"><a class="reference internal" href="mindspore/mindspore.ms_function.html">mindspore.ms_function</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="#id10">日志</a><ul>
<li class="toctree-l3"><a class="reference internal" href="mindspore/mindspore.get_level.html">mindspore.get_level</a></li>
<li class="toctree-l3"><a class="reference internal" href="mindspore/mindspore.get_log_config.html">mindspore.get_log_config</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="#id11">自动混合精度</a><ul>
<li class="toctree-l3"><a class="reference internal" href="mindspore/mindspore.build_train_network.html">mindspore.build_train_network</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="#id12">安装验证</a><ul>
<li class="toctree-l3"><a class="reference internal" href="mindspore/mindspore.run_check.html">mindspore.run_check</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="#id13">调试</a><ul>
<li class="toctree-l3"><a class="reference internal" href="mindspore/mindspore.set_dump.html">mindspore.set_dump</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="#id14">内存回收</a><ul>
<li class="toctree-l3"><a class="reference internal" href="mindspore/mindspore.ms_memory_recycle.html">mindspore.ms_memory_recycle</a></li>
</ul>
</li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="mindspore.common.initializer.html">mindspore.common.initializer</a></li>
<li class="toctree-l1"><a class="reference internal" href="mindspore.communication.html">mindspore.communication</a></li>
<li class="toctree-l1"><a class="reference internal" href="mindspore.compression.html">mindspore.compression</a></li>
<li class="toctree-l1"><a class="reference internal" href="mindspore.context.html">mindspore.context</a></li>
<li class="toctree-l1"><a class="reference internal" href="mindspore.dataset.html">mindspore.dataset</a></li>
<li class="toctree-l1"><a class="reference internal" href="mindspore.dataset.audio.html">mindspore.dataset.audio</a></li>
<li class="toctree-l1"><a class="reference internal" href="mindspore.dataset.config.html">mindspore.dataset.config</a></li>
<li class="toctree-l1"><a class="reference internal" href="mindspore.dataset.text.html">mindspore.dataset.text</a></li>
<li class="toctree-l1"><a class="reference internal" href="mindspore.dataset.transforms.html">mindspore.dataset.transforms</a></li>
<li class="toctree-l1"><a class="reference internal" href="mindspore.dataset.vision.html">mindspore.dataset.vision</a></li>
<li class="toctree-l1"><a class="reference internal" href="mindspore.mindrecord.html">mindspore.mindrecord</a></li>
<li class="toctree-l1"><a class="reference internal" href="mindspore.nn.html">mindspore.nn</a></li>
<li class="toctree-l1"><a class="reference internal" href="mindspore.nn.probability.html">mindspore.nn.probability</a></li>
<li class="toctree-l1"><a class="reference internal" href="mindspore.nn.transformer.html">mindspore.nn.transformer</a></li>
<li class="toctree-l1"><a class="reference internal" href="mindspore.numpy.html">mindspore.numpy</a></li>
<li class="toctree-l1"><a class="reference internal" href="mindspore.ops.html">mindspore.ops</a></li>
<li class="toctree-l1"><a class="reference internal" href="mindspore.parallel.html">mindspore.parallel</a></li>
<li class="toctree-l1"><a class="reference internal" href="mindspore.parallel.nn.html">mindspore.parallel.nn</a></li>
<li class="toctree-l1"><a class="reference internal" href="mindspore.profiler.html">mindspore.profiler</a></li>
<li class="toctree-l1"><a class="reference internal" href="mindspore.scipy.html">mindspore.scipy</a></li>
<li class="toctree-l1"><a class="reference internal" href="mindspore.train.html">mindspore.train</a></li>
<li class="toctree-l1"><a class="reference internal" href="mindspore.boost.html">mindspore.boost</a></li>
</ul>
<p class="caption"><span class="caption-text">MindSpore C++ API</span></p>
<ul>
<li class="toctree-l1"><a class="reference external" href="https://www.mindspore.cn/lite/api/zh-CN/master/api_cpp/mindspore.html">MindSpore Lite↗</a></li>
</ul>

            
          
        </div>
        
      </div>
    </nav>

    <section data-toggle="wy-nav-shift" class="wy-nav-content-wrap">

      
      <nav class="wy-nav-top" aria-label="top navigation">
        
          <i data-toggle="wy-nav-top" class="fa fa-bars"></i>
          <a href="../index.html">MindSpore</a>
        
      </nav>


      <div class="wy-nav-content">
        
        <div class="rst-content">
        
          

















<div role="navigation" aria-label="breadcrumbs navigation">

  <ul class="wy-breadcrumbs">
    
      <li><a href="../index.html" class="icon icon-home"></a> &raquo;</li>
        
      <li>mindspore</li>
    
    
      <li class="wy-breadcrumbs-aside">
        
          
            <a href="../_sources/api_python/mindspore.rst.txt" rel="nofollow"> View page source</a>
          
        
      </li>
    
  </ul>

  
  <hr/>
</div>
          <div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
           <div itemprop="articleBody">
            
  <div class="section" id="mindspore">
<h1>mindspore<a class="headerlink" href="#mindspore" title="Permalink to this headline">¶</a></h1>
<div class="section" id="id1">
<h2>张量<a class="headerlink" href="#id1" title="Permalink to this headline">¶</a></h2>
<table class="longtable docutils align-default">
<colgroup>
<col style="width: 10%" />
<col style="width: 90%" />
</colgroup>
<tbody>
<tr class="row-odd"></tr>
<tr class="row-even"><td><p><a class="reference internal" href="mindspore/mindspore.Tensor.html#mindspore.Tensor" title="mindspore.Tensor"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.Tensor</span></code></a></p></td>
<td><p>张量，即存储多维数组（n-dimensional array）的数据结构。</p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="mindspore/mindspore.RowTensor.html#mindspore.RowTensor" title="mindspore.RowTensor"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.RowTensor</span></code></a></p></td>
<td><p>用来表示一组指定索引的张量切片的稀疏表示。</p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="mindspore/mindspore.SparseTensor.html#mindspore.SparseTensor" title="mindspore.SparseTensor"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.SparseTensor</span></code></a></p></td>
<td><p>用来表示某一张量在给定索引上非零元素的集合。</p></td>
</tr>
</tbody>
</table>
</div>
<div class="section" id="id2">
<h2>参数<a class="headerlink" href="#id2" title="Permalink to this headline">¶</a></h2>
<table class="longtable docutils align-default">
<colgroup>
<col style="width: 10%" />
<col style="width: 90%" />
</colgroup>
<tbody>
<tr class="row-odd"></tr>
<tr class="row-even"><td><p><a class="reference internal" href="mindspore/mindspore.Parameter.html#mindspore.Parameter" title="mindspore.Parameter"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.Parameter</span></code></a></p></td>
<td><p><cite>Parameter</cite> 是 <cite>Tensor</cite> 的子类，当它们被绑定为Cell的属性时，会自动添加到其参数列表中，并且可以通过Cell的某些方法获取，例如 <cite>cell.get_parameters()</cite> 。</p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="mindspore/mindspore.ParameterTuple.html#mindspore.ParameterTuple" title="mindspore.ParameterTuple"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ParameterTuple</span></code></a></p></td>
<td><p>继承于tuple，用于管理多个Parameter。</p></td>
</tr>
</tbody>
</table>
</div>
<div class="section" id="id3">
<h2>数据类型<a class="headerlink" href="#id3" title="Permalink to this headline">¶</a></h2>
<table class="longtable docutils align-default">
<colgroup>
<col style="width: 10%" />
<col style="width: 90%" />
</colgroup>
<tbody>
<tr class="row-odd"></tr>
<tr class="row-even"><td><p><a class="reference internal" href="mindspore/mindspore.dtype.html#mindspore.dtype" title="mindspore.dtype"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.dtype</span></code></a></p></td>
<td><p>创建一个MindSpore数据类型的对象。</p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="mindspore/mindspore.dtype_to_nptype.html#mindspore.dtype_to_nptype" title="mindspore.dtype_to_nptype"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.dtype_to_nptype</span></code></a></p></td>
<td><p>将MindSpore dtype转换成NumPy数据类型。</p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="mindspore/mindspore.issubclass_.html#mindspore.issubclass_" title="mindspore.issubclass_"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.issubclass_</span></code></a></p></td>
<td><p>判断 <cite>type_</cite> 是否为 <cite>dtype</cite> 的子类。</p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="mindspore/mindspore.dtype_to_pytype.html#mindspore.dtype_to_pytype" title="mindspore.dtype_to_pytype"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.dtype_to_pytype</span></code></a></p></td>
<td><p>将MindSpore dtype转换为Python数据类型。</p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="mindspore/mindspore.pytype_to_dtype.html#mindspore.pytype_to_dtype" title="mindspore.pytype_to_dtype"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.pytype_to_dtype</span></code></a></p></td>
<td><p>将Python数据类型转换为MindSpore数据类型。</p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="mindspore/mindspore.get_py_obj_dtype.html#mindspore.get_py_obj_dtype" title="mindspore.get_py_obj_dtype"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.get_py_obj_dtype</span></code></a></p></td>
<td><p>将Python数据类型转换为MindSpore数据类型。</p></td>
</tr>
</tbody>
</table>
</div>
<div class="section" id="id4">
<h2>随机种子<a class="headerlink" href="#id4" title="Permalink to this headline">¶</a></h2>
<table class="longtable docutils align-default">
<colgroup>
<col style="width: 10%" />
<col style="width: 90%" />
</colgroup>
<tbody>
<tr class="row-odd"></tr>
<tr class="row-even"><td><p><a class="reference internal" href="mindspore/mindspore.set_seed.html#mindspore.set_seed" title="mindspore.set_seed"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.set_seed</span></code></a></p></td>
<td><p>设置全局种子。</p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="mindspore/mindspore.get_seed.html#mindspore.get_seed" title="mindspore.get_seed"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.get_seed</span></code></a></p></td>
<td><p>获取随机种子。</p></td>
</tr>
</tbody>
</table>
</div>
<div class="section" id="id5">
<h2>模型<a class="headerlink" href="#id5" title="Permalink to this headline">¶</a></h2>
<table class="longtable docutils align-default">
<colgroup>
<col style="width: 10%" />
<col style="width: 90%" />
</colgroup>
<tbody>
<tr class="row-odd"></tr>
<tr class="row-even"><td><p><a class="reference internal" href="mindspore/mindspore.Model.html#mindspore.Model" title="mindspore.Model"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.Model</span></code></a></p></td>
<td><p>模型训练或推理的高阶接口。</p></td>
</tr>
</tbody>
</table>
</div>
<div class="section" id="id6">
<h2>数据处理工具<a class="headerlink" href="#id6" title="Permalink to this headline">¶</a></h2>
<table class="longtable docutils align-default">
<colgroup>
<col style="width: 10%" />
<col style="width: 90%" />
</colgroup>
<tbody>
<tr class="row-odd"></tr>
<tr class="row-even"><td><p><a class="reference internal" href="mindspore/mindspore.DatasetHelper.html#mindspore.DatasetHelper" title="mindspore.DatasetHelper"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.DatasetHelper</span></code></a></p></td>
<td><p>DatasetHelper是一个处理MindData数据集的类，提供数据集信息。</p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="mindspore/mindspore.connect_network_with_dataset.html#mindspore.connect_network_with_dataset" title="mindspore.connect_network_with_dataset"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.connect_network_with_dataset</span></code></a></p></td>
<td><p>将 <cite>network</cite> 与 <cite>dataset_helper</cite> 中的数据集连接。</p></td>
</tr>
</tbody>
</table>
</div>
<div class="section" id="id7">
<h2>混合精度管理<a class="headerlink" href="#id7" title="Permalink to this headline">¶</a></h2>
<table class="longtable docutils align-default">
<colgroup>
<col style="width: 10%" />
<col style="width: 90%" />
</colgroup>
<tbody>
<tr class="row-odd"></tr>
<tr class="row-even"><td><p><a class="reference internal" href="mindspore/mindspore.LossScaleManager.html#mindspore.LossScaleManager" title="mindspore.LossScaleManager"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.LossScaleManager</span></code></a></p></td>
<td><p>使用混合精度时，用于管理损失缩放系数（loss scale）的抽象类。</p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="mindspore/mindspore.FixedLossScaleManager.html#mindspore.FixedLossScaleManager" title="mindspore.FixedLossScaleManager"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.FixedLossScaleManager</span></code></a></p></td>
<td><p>损失缩放系数不变的管理器，继承自 <a class="reference internal" href="mindspore/mindspore.LossScaleManager.html#mindspore.LossScaleManager" title="mindspore.LossScaleManager"><code class="xref py py-class docutils literal notranslate"><span class="pre">mindspore.LossScaleManager</span></code></a> 。</p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="mindspore/mindspore.DynamicLossScaleManager.html#mindspore.DynamicLossScaleManager" title="mindspore.DynamicLossScaleManager"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.DynamicLossScaleManager</span></code></a></p></td>
<td><p>动态调整损失缩放系数的管理器，继承自 <a class="reference internal" href="mindspore/mindspore.LossScaleManager.html#mindspore.LossScaleManager" title="mindspore.LossScaleManager"><code class="xref py py-class docutils literal notranslate"><span class="pre">mindspore.LossScaleManager</span></code></a> 。</p></td>
</tr>
</tbody>
</table>
</div>
<div class="section" id="id8">
<h2>序列化<a class="headerlink" href="#id8" title="Permalink to this headline">¶</a></h2>
<table class="longtable docutils align-default">
<colgroup>
<col style="width: 10%" />
<col style="width: 90%" />
</colgroup>
<tbody>
<tr class="row-odd"></tr>
<tr class="row-even"><td><p><a class="reference internal" href="mindspore/mindspore.save_checkpoint.html#mindspore.save_checkpoint" title="mindspore.save_checkpoint"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.save_checkpoint</span></code></a></p></td>
<td><p>将网络权重保存到checkpoint文件中。</p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="mindspore/mindspore.load_checkpoint.html#mindspore.load_checkpoint" title="mindspore.load_checkpoint"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.load_checkpoint</span></code></a></p></td>
<td><p>加载checkpoint文件。</p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="mindspore/mindspore.load_param_into_net.html#mindspore.load_param_into_net" title="mindspore.load_param_into_net"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.load_param_into_net</span></code></a></p></td>
<td><p>将参数加载到网络中，返回网络中没有被加载的参数列表。</p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="mindspore/mindspore.export.html#mindspore.export" title="mindspore.export"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.export</span></code></a></p></td>
<td><p>将MindSpore网络模型导出为指定格式的文件。</p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="mindspore/mindspore.load.html#mindspore.load" title="mindspore.load"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.load</span></code></a></p></td>
<td><p>加载MindIR文件。</p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="mindspore/mindspore.parse_print.html#mindspore.parse_print" title="mindspore.parse_print"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.parse_print</span></code></a></p></td>
<td><p>解析由 mindspore.ops.Print 生成的数据文件。</p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="mindspore/mindspore.build_searched_strategy.html#mindspore.build_searched_strategy" title="mindspore.build_searched_strategy"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.build_searched_strategy</span></code></a></p></td>
<td><p>构建网络中每个参数的策略，用于分布式推理。</p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="mindspore/mindspore.merge_sliced_parameter.html#mindspore.merge_sliced_parameter" title="mindspore.merge_sliced_parameter"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.merge_sliced_parameter</span></code></a></p></td>
<td><p>将参数切片合并为一个完整的参数，用于分布式推理。</p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="mindspore/mindspore.load_distributed_checkpoint.html#mindspore.load_distributed_checkpoint" title="mindspore.load_distributed_checkpoint"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.load_distributed_checkpoint</span></code></a></p></td>
<td><p>给分布式预测加载checkpoint文件到网络，用于分布式推理。</p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="mindspore/mindspore.async_ckpt_thread_status.html#mindspore.async_ckpt_thread_status" title="mindspore.async_ckpt_thread_status"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.async_ckpt_thread_status</span></code></a></p></td>
<td><p>获取异步保存checkpoint文件线程的状态。</p></td>
</tr>
</tbody>
</table>
</div>
<div class="section" id="id9">
<h2>即时编译<a class="headerlink" href="#id9" title="Permalink to this headline">¶</a></h2>
<table class="longtable docutils align-default">
<colgroup>
<col style="width: 10%" />
<col style="width: 90%" />
</colgroup>
<tbody>
<tr class="row-odd"></tr>
<tr class="row-even"><td><p><a class="reference internal" href="mindspore/mindspore.ms_function.html#mindspore.ms_function" title="mindspore.ms_function"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ms_function</span></code></a></p></td>
<td><p>将Python函数编译为一张可调用的MindSpore图。</p></td>
</tr>
</tbody>
</table>
</div>
<div class="section" id="id10">
<h2>日志<a class="headerlink" href="#id10" title="Permalink to this headline">¶</a></h2>
<table class="longtable docutils align-default">
<colgroup>
<col style="width: 10%" />
<col style="width: 90%" />
</colgroup>
<tbody>
<tr class="row-odd"></tr>
<tr class="row-even"><td><p><a class="reference internal" href="mindspore/mindspore.get_level.html#mindspore.get_level" title="mindspore.get_level"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.get_level</span></code></a></p></td>
<td><p>获取日志记录器的级别。</p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="mindspore/mindspore.get_log_config.html#mindspore.get_log_config" title="mindspore.get_log_config"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.get_log_config</span></code></a></p></td>
<td><p>获取日志配置。</p></td>
</tr>
</tbody>
</table>
</div>
<div class="section" id="id11">
<h2>自动混合精度<a class="headerlink" href="#id11" title="Permalink to this headline">¶</a></h2>
<table class="longtable docutils align-default">
<colgroup>
<col style="width: 10%" />
<col style="width: 90%" />
</colgroup>
<tbody>
<tr class="row-odd"></tr>
<tr class="row-even"><td><p><a class="reference internal" href="mindspore/mindspore.build_train_network.html#mindspore.build_train_network" title="mindspore.build_train_network"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.build_train_network</span></code></a></p></td>
<td><p>构建混合精度训练网络。</p></td>
</tr>
</tbody>
</table>
</div>
<div class="section" id="id12">
<h2>安装验证<a class="headerlink" href="#id12" title="Permalink to this headline">¶</a></h2>
<table class="longtable docutils align-default">
<colgroup>
<col style="width: 10%" />
<col style="width: 90%" />
</colgroup>
<tbody>
<tr class="row-odd"></tr>
<tr class="row-even"><td><p><a class="reference internal" href="mindspore/mindspore.run_check.html#mindspore.run_check" title="mindspore.run_check"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.run_check</span></code></a></p></td>
<td><p>提供了便捷的API用以查询MindSpore的安装是否成功。</p></td>
</tr>
</tbody>
</table>
</div>
<div class="section" id="id13">
<h2>调试<a class="headerlink" href="#id13" title="Permalink to this headline">¶</a></h2>
<table class="longtable docutils align-default">
<colgroup>
<col style="width: 10%" />
<col style="width: 90%" />
</colgroup>
<tbody>
<tr class="row-odd"></tr>
<tr class="row-even"><td><p><a class="reference internal" href="mindspore/mindspore.set_dump.html#mindspore.set_dump" title="mindspore.set_dump"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.set_dump</span></code></a></p></td>
<td><p>启用或者禁用target及其子节点的Dump数据功能。</p></td>
</tr>
</tbody>
</table>
</div>
<div class="section" id="id14">
<h2>内存回收<a class="headerlink" href="#id14" title="Permalink to this headline">¶</a></h2>
<table class="longtable docutils align-default">
<colgroup>
<col style="width: 10%" />
<col style="width: 90%" />
</colgroup>
<tbody>
<tr class="row-odd"></tr>
<tr class="row-even"><td><p><a class="reference internal" href="mindspore/mindspore.ms_memory_recycle.html#mindspore.ms_memory_recycle" title="mindspore.ms_memory_recycle"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.ms_memory_recycle</span></code></a></p></td>
<td><p>回收MindSpore使用的内存。</p></td>
</tr>
</tbody>
</table>
</div>
</div>


           </div>
           
          </div>
          <footer>
    <div class="rst-footer-buttons" role="navigation" aria-label="footer navigation">
        <a href="mindspore/mindspore.Tensor.html" class="btn btn-neutral float-right" title="mindspore.Tensor" accesskey="n" rel="next">Next <span class="fa fa-arrow-circle-right" aria-hidden="true"></span></a>
        <a href="../index.html" class="btn btn-neutral float-left" title="MindSpore API" accesskey="p" rel="prev"><span class="fa fa-arrow-circle-left" aria-hidden="true"></span> Previous</a>
    </div>

  <hr/>

  <div role="contentinfo">
    <p>
        &#169; Copyright 2021, MindSpore.

    </p>
  </div>
    
    
    
    Built with <a href="https://www.sphinx-doc.org/">Sphinx</a> using a
    
    <a href="https://github.com/readthedocs/sphinx_rtd_theme">theme</a>
    
    provided by <a href="https://readthedocs.org">Read the Docs</a>. 

</footer>
        </div>
      </div>

    </section>

  </div>
  

  <script type="text/javascript">
      jQuery(function () {
          SphinxRtdTheme.Navigation.enable(true);
      });
  </script>

  
  
    
   

</body>
</html>